<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/view/inc.jsp" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<div class="dialog_form">
    <form id="fm" method="post" action="<%=contextPath%>/sys/organization/saveAndUpdate" novalidate>
        <input type="hidden" name="id" value="${organization.id}"/>

        <div class="dialog_item">
            <label>机构名称:</label>
            <input id="orgName" name="orgName" class="no-space easyui-textbox" required="true" validType="length[0,20]"
                   value="${organization.orgName}">
        </div>
        <div class="dialog_item">
            <label>联系人:</label>
            <input name="contractPerson" class="easyui-textbox" validType="length[0,20]"
                   value="${organization.contractPerson}">
        </div>
        <div class="dialog_item">
            <label>联系电话:</label>
            <input name="tel" class="easyui-textbox" validType="length[0,20]" value="${organization.tel}">
        </div>
        <div class="dialog_item">
            <label>联系地址:</label>
            <input name="address" class="easyui-textbox" validType="length[0,200]" value="${organization.address}">
        </div>

        <div class="dialog_item">
            <label>上级机构:</label>
            <input name="parentId" class="easyui-combotree"
                   value="${organization.parentId}"
                   data-options=" editable:false,idField:'id',textField:'orgName',parentField:'parentId',url:'<%=contextPath%>/sys/organization/commonTreeMore',method:'get' "/>
        </div>
        <div class="dialog_item">
            <label>状态:</label>
            <input name="status" editable="false" value="${organization.status}" required="true"
                   class="easyui-combobox" data-options="valueField : 'code',
	    						textField : 'name', url:'<%=contextPath%>/sys/codeItems/byCategoryCode?categoryCode=status',
								panelHeight:'auto'
							">
        </div>
        <div class="dialog_item">
            <label>备注:</label>
            <input name="remark" class="easyui-textbox" data-options="multiline:true" validType="length[0,200]"
                   value="${organization.remark}"
                   style="height:80px">
        </div>
    </form>
</div>
</body>
</html>